Backtest : name,startdate,firstdisplayeddate,enddate,realtime,doubtsolving
2. QQQ(10)30 -150 to (15)75,null,true,null,true,true

Capital : initial,lotsizeactive,lotsize
100000.0,true,1

Fee : orderfeeactive,orderfee,orderfeetype,minorderfeeactive,minorderfee,minorderfeetype,maxorderfeeactive,maxorderfee,maxorderfeetype,spreadactive,spread
false,0.0,"{0} / order",false,0.0,"{0} / order",false,0.0,"{0} / order",false,2.0

Variables : name,min,max,step,isfixed,fixedvalue

WalkForward : activated,anchored,optimperiod,occurencenb
false,false,80,5

Description :


Formula :
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated

// Conditions to enter long positions
timeframe (10 minutes, updateonclose)
indicator1 = MoneyFlowIndex[40]
c1 = (indicator1< 30)
indicator2 = CCI[40]
c2 = (indicator2 < -150)
c3 = (close > open)

IF c1 AND c2 AND c3 THEN
BUY 10000 CASH AT MARKET
ENDIF

// Conditions to exit long positions
timeframe (15 minutes, updateonclose)
indicator3 = MONEYFLOWINDEX[40]
c4 = (indicator3 > 75)

IF c4 THEN
SELL AT MARKET
ENDIF


